}else{
return null;
}
}else if(request.get(field) instanceof net.sf.json.JSONNull){
if(!nullable){
throw new RuntimeException("Field " + field + " cannot be null");
}
}else{
return null;
}
}else if(request.isNull(field)){
if(!nullable){
throw new RuntimeException("Field " + field + " cannot be null");
}